package com.wangxin.study8.defaultmethods;

/**
 * @ClassName DefaultMethodsMain
 * @Description
 * @Author Wangxin
 * @Date 2019-03-24 17:58
 * @Version 1.0
 **/
public class DefaultMethodsMain {
    public static void main(String[] args) {
        DefaultMethodsInterfaces defaultMethodsInterfaces = new DefaultMethodsInterfaces() {
            @Override
            public double calculate(int a) {
                return sqrt(a * 100);
            }
        };
        System.out.println(defaultMethodsInterfaces.calculate(10));
        System.out.println(defaultMethodsInterfaces.sqrt(16));
    }
}
